/**
 * %项目描述%
 * %版本信息%
 */
package com.leehom.arch.base.shard.model;

import java.io.Serializable;

import jakarta.persistence.Embeddable;
import lombok.Data;

/**
 * @类名: ShardId
 * @说明: 分片主键类
 * 
 * @author leehom
 * @Date 2012-6-27 下午4:16:49
 * @修改记录：
 * 
 * @see
 */
@Embeddable
@Data
public class ShardId implements Serializable {

	/** */
	private static final long serialVersionUID = -8721884313129261146L;
	
	/** 分片拥有者, 通常是作业名称*/
	private String owner;
	/** 分片目标名称，例如，文件名称，表名称*/
	private String resource;
	
	public ShardId() {
		super();

	}
	
	/**
	 * @param owner
	 * @param resource
	 */
	public ShardId(String owner, String resource) {
		super();
		this.owner = owner;
		this.resource = resource;
	}
	
}
